package com.dolphin.common.component.var.model;

import com.dolphin.common.component.var.enums.VarTypeEnum;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@Getter
@Setter
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public class VarModel extends ExtVarModel{

    private VarTypeEnum type;
    private String definition;
    private String subType;

    public VarModel() {
    }

    @Override
    public String getBid() {
        if(type != null){
            return type.getIndex() + getId();
        }
        return null;
    }
}
